﻿<?xml version="1.0" encoding="utf-8" ?>

<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
assembly="Helper.Core"
namespace="Helper.Core.Entity">
  
  <class name="Call" table="T_CHAMADO">
    
    <id name="Id" column="ISN_CHAMADO">
      <generator class="increment"></generator> 
    </id>
    
    <property name="Subject" not-null="true" column="CHADS_ASSUNTO" />

    <property name="Content" not-null="true" column="CHADS_CONTEUDO" />

    <property name="Timestamp" not-null="true" column="CHADT_CHAMADO" type="System.DateTime"/>
    
    <many-to-one name="Author" column="ISN_USUARIO" class="User" fetch="join" />


    
  </class>  
</hibernate-mapping>
